package com.fastexport.constant;

import java.awt.*;

public class Watermark {

    /**
     * 水印内容，多行内容以","分割
     */
    private String content;

    /**
     * 画笔颜色
     */
    private String color;

    /**
     * 字体颜色
     */
    private Font font;

    /**
     * 水印宽、高
     */
    private int width;
    private int height;

    /**
     * 倾斜度
     */
    private double shearX;
    private double shearY;

    /**
     * 字体的y轴位置
     */
    private int yAxis;

    public Watermark() {
        this.content = "默认水印,逗号分行";
        this.color = "#cbd0d4";
        this.font = new Font("microsoft-yahei", Font.PLAIN, 20);
        this.width = 500;
        this.height = 300;
        this.shearX = 0.1;
        this.shearY = -0.2;
        this.yAxis = 200;
    }

    public Watermark(String content, String color, Font font, int width, int height, double shearX, double shearY, int yAxis) {
        this.content = content;
        this.color = color;
        this.font = font;
        this.width = width;
        this.height = height;
        this.shearX = shearX;
        this.shearY = shearY;
        this.yAxis = yAxis;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Font getFont() {
        return font;
    }

    public void setFont(Font font) {
        this.font = font;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public double getShearX() {
        return shearX;
    }

    public void setShearX(double shearX) {
        this.shearX = shearX;
    }

    public double getShearY() {
        return shearY;
    }

    public void setShearY(double shearY) {
        this.shearY = shearY;
    }

    public int getYAxis() {
        return yAxis;
    }

    public void setYAxis(int yAxis) {
        this.yAxis = yAxis;
    }
}
